From: Colin Walters Date: Mon, 18 Jun 2018 15:11:21 +0000 (-0400) Subject: tests/installed: Add a free-space success path test X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~22^2~1 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0f88a2a72d55a949019675cd03e72c478f4f14db;p=ostree.git tests/installed: Add a free-space success path test We implicitly test the success percent path a lot, but not the absolute path. Closes: #1632 Approved by: jlebon --- diff --git a/tests/installed/nondestructive/itest-pull-space.sh b/tests/installed/nondestructive/itest-pull-space.sh index bb3f1546..8fcf1e8a 100755 --- a/tests/installed/nondestructive/itest-pull-space.sh +++ b/tests/installed/nondestructive/itest-pull-space.sh @@ -35,8 +35,17 @@ if ostree --repo=mnt/repo pull-local /ostree/repo ${host_commit} 2>err.txt; then fatal "succeeded in doing a pull with no free space" fi assert_file_has_content err.txt "min-free-space-size" -echo "ok min-free-space-size" +echo "ok min-free-space-size (error)" umount mnt losetup -d ${blkdev} +rm testblk.img + +# min-free-space-size success +ostree --repo=repo init --mode=bare-user +echo 'fsync=false' >> repo/config +echo 'min-free-space-size=1MB' >> repo/config +ostree --repo=repo pull-local /ostree/repo ${host_commit} +echo "ok min-free-space-size (success)" + date